package cn.edu.tbu.tydemo.repository;

import cn.edu.tbu.tydemo.domain.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentRepository extends JpaRepository<Student,Integer> {

    List<Student> findAll();
    /**
     * 根据name查询
     */
    List<Student> findByName(String name);
    List<Student> findByNameAndPassword(String name,String password);
}
